import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/product/` + url, ...arg)


export default {
	async list(data) {
		return await request('list', data, 'post')
	},
	async add(data) {
		return await request('save', data, 'post')
	},
    async edit(data) {
		return await request('save', data, 'post')
	},
    async removeById(data) {
		return await request('delete_by_id', data, 'post')
	},
}
